<template>
  <div class="home">
    <h2>首页</h2>
  </div>
</template>

<script>
import { getBanner } from '../utils/api.js'
export default {
  data () {
    return {
    }
  },
  created () {
    this.getBannerMethods()
  },
  methods: {
    // 获取轮播图
    async getBannerMethods () {
      let data = await getBanner()
      console.log('轮播图', data)
    }
  }
}
</script>
